﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using RentHouse.Common;
using RentHouse.DTO;

namespace RentHouse.IService
{
   public interface IPermissionService:IServiceSupport
    {
        /// <summary>
        /// 查询权限列表，模糊查询加分页
        /// </summary>
        /// <param name="length"></param>
        /// <param name="start"></param>
        /// <param name="name"></param>
        /// <param name="rowCount"></param>
        /// <returns></returns>
         List<PermissionDTO> GetList(int length, int start, string name,ref int rowCount);



        /// <summary>
        /// 添加权限角色
        /// </summary>
        /// <param name="dTO"></param>
        /// <returns></returns>
        AjaxResult AddPermission(PermissionDTO dTO);

        PermissionDTO GetPermission(int id);
        /// <summary>
        /// 删除权限表中某一条数据
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        AjaxResult DeletePermission(int id);

        AjaxResult DeletePers(int[] id);
        Task<AjaxResult> UpdatePermissionAsync(PermissionDTO dTO);
        AjaxResult UpdatePermission(PermissionDTO dTO);
    }
}
